package com.jy.api.vo.admin.stock;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lihu on 2017/9/9.
 */
@Data
@NoArgsConstructor
public class StockInVo {


    private int totalWholeQuantity = 0;

    private int totalSingleQuantity = 0;

    private double totalAmount = 0;

    private List<Content> contents = new ArrayList<>();

    public StockInVo(int totalWholeQuantity,
                     int totalSingleQuantity, double totalAmount) {
        this.totalWholeQuantity = totalWholeQuantity;
        this.totalSingleQuantity = totalSingleQuantity;
        this.totalAmount = totalAmount;
    }

    @Data
    @NoArgsConstructor
    public static class Content {

        private String productId;

        private String productName;

        private double wholeQuanitty;

        private double wholeAmount;

        private double singleQuantity;

        private double singleAmount;

        public Content(String productId) {
            this.productId = productId;
        }
    }
}
